!function(e,t,n,r,a){var o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof o[r]&&o[r],i=s.cache||{},c="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function l(t,n){if(!i[t]){if(!e[t]){var a="function"==typeof o[r]&&o[r];if(!n&&a)return a(t,!0);if(s)return s(t,!0);if(c&&"string"==typeof t)return c(t);var u=Error("Cannot find module '"+t+"'");throw u.code="MODULE_NOT_FOUND",u}h.resolve=function(n){var r=e[t][1][n];return null!=r?r:n},h.cache={};var d=i[t]=new l.Module(t);e[t][0].call(d.exports,h,d,d.exports,this)}return i[t].exports;function h(e){var t=h.resolve(e);return!1===t?{}:l(t)}}l.isParcelRequire=!0,l.Module=function(e){this.id=e,this.bundle=l,this.exports={}},l.modules=e,l.cache=i,l.parent=s,l.register=function(t,n){e[t]=[function(e,t){t.exports=n},{}]},Object.defineProperty(l,"root",{get:function(){return o[r]}}),o[r]=l;for(var u=0;u0&&"none"===r&&C(new f.SetPageSpeechLevelCommand(S,e))},[r]),(0,o.h)(d.default,{isMobile:u,onClick:function(){C(new g.IncreasePageSpeechSpeedCommand(S))},icon:(0,o.h)(p.default,null),title:(0,l.getTranslate)("pageSpeech",S),ariaLabelInactive:(0,l.getTranslate)("pageSpeechAriaLabelInactive",S),ariaLabelActive:(0,l.getTranslate)("pageSpeechAriaLabelActive",S,b.toString()),dotsLength:c.speechSpeedList.length-1,dotsIndex:b,language:S})}},{"@swc/helpers/_/_sliced_to_array":"fHrmT",preact:"gdb49",reactn:"iVSVY","preact/hooks":"9Dac5","../constants/config":"kqbjQ","../constants/translates":"e16dt","../components/ResourceButton":"bnNUx","../components/Icons/Speech":"aeEP7","../services/analytics":"9b6Tu","../commands/pageSpeechCommands/IncreasePageSpeechSpeedCommand":"iwSYr","../commands/pageSpeechCommands/SetPageSpeechLevelCommand":"4FMYL","../hooks/useDebounce":"c67Vm","../hooks/useCommandStack":"2LAi9","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],bnNUx:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n);var a=e("@swc/helpers/_/_sliced_to_array"),o=e("@swc/helpers/_/_tagged_template_literal"),s=e("preact"),i=e("styled-components"),c=r.interopDefault(i),l=e("reactn");function u(){var e=(0,o._)(["\n &:hover {\n outline: 2px solid;\n outline-color: ",";\n outline-offset: -2px;\n background-color: ",";\n }\n "]);return u=function(){return e},e}function d(){var e=(0,o._)(["\n &&& {\n all: initial;\n box-shadow: ",";\n appearance: none;\n position: relative;\n outline: none;\n border: 2px solid transparent;\n width: 100%;\n height: 106px;\n display: flex;\n align-items: initial;\n justify-content: space-between;\n flex-direction: column;\n border-radius: 8px;\n padding: 12px 8px;\n cursor: pointer;\n transition: 0.2s ease-in-out;\n background-color: ",";\n box-sizing: border-box;\n box-shadow: 0px 2px 6px 2px #00000026;\n\n & > * > svg > path {\n transition: 0.2s ease-in-out;\n fill: ",";\n }\n\n ","\n\n &:active,\n &:focus {\n background-color: ",";\n }\n\n ","\n\n &:disabled {\n border: 2px solid ",";\n background: transparent;\n cursor: not-allowed;\n box-shadow: unset;\n\n &:hover {\n outline: none;\n }\n }\n }\n"]);return d=function(){return e},e}function h(){var e=(0,o._)(["\n width: 32px;\n height: 32px;\n margin-bottom: ",";\n display: flex;\n\n & > svg {\n width: 100%;\n height: 100%;\n }\n\n @media (max-width: 359px) {\n width: 24px;\n height: 24px;\n }\n\n @media (max-height: 359px) {\n width: 24px;\n height: 24px;\n }\n\n /*Para aparecer somente o primeiro filho svg*/\n & > svg:not(:first-child) {\n display: none;\n }\n"]);return h=function(){return e},e}function p(){var e=(0,o._)(["\n color: ",";\n font-size: 16px;\n font-weight: 700;\n line-height: 20.8px;\n text-align: initial;\n\n @media (max-width: 359px) {\n font-size: 14px;\n }\n\n @media (max-height: 359px) {\n font-size: 14px;\n }\n"]);return p=function(){return e},e}function m(){var e=(0,o._)(["\n position: absolute;\n display: flex;\n right: 12px;\n top: 12px;\n height: 4px;\n align-items: center;\n gap: 4px;\n"]);return m=function(){return e},e}function g(){var e=(0,o._)(["\n width: 6px;\n height: 6px;\n border-radius: 50%;\n background-color: ",";\n transition: 0.2s ease-in-out;\n\n ","\n"]);return g=function(){return e},e}var f=(0,c.default).button(d(),function(e){return e.theme.shadow[2]},function(e){return e.theme.colors.surface.bright.background[0]},function(e){return e.theme.colors.surface.onSurfaceLow[0]},function(e){var t=e.isMobile,n=e.selected,r=e.theme;return!t&&(0,i.css)(u(),!0===n?r.colors.primary.default[0]:r.colors.border.normal[0],r.colors.surface.bright.background[0])},function(e){return e.theme.colors.surface.bright.background[0]},function(e){var t=e.selected,n=e.theme;return t&&"\n border: 2px solid ".concat(n.colors.primary.default[0],";\n \n & > * > svg > path {\n fill: ").concat(n.colors.primary.default[0],";\n }\n ")},function(e){return e.theme.colors.border.low[0]}),v=(0,c.default).span(h(),function(e){return e.isMobile?"0px":"4px"}),_=(0,c.default).span(p(),function(e){return e.theme.colors.surface.onSurface[0]}),C=(0,c.default).span(m()),S=(0,c.default).span(g(),function(e){var t=e.theme;return"dark"===e.context?t.colors.surface.bright[2][20]:t.colors.surface.dim[2][20]},function(e){var t=e.active,n=e.theme;return t&&"\n height: 6px;\n background-color: ".concat(n.colors.primary.default[0],";\n ")});n.default=function(e){var t=e.icon,n=e.title,r=e.isMobile,o=e.onClick,i=e.ariaLabelActive,c=e.ariaLabelInactive,u=e.dotsLength,d=void 0===u?0:u,h=e.dotsIndex,p=e.disabled,m=(0,a._)((0,l.useGlobal)(),1)[0],g=m.highContrast,b=m.isAddonsActive,y=g?"dark":"light",w=(null!=h?h:0)>0;return(0,s.h)(f,{selected:w,onClick:o,tabIndex:b?0:-1,"aria-label":w?i:c,context:y,isMobile:r,disabled:p},(0,s.h)(v,{isMobile:r},t),(0,s.h)(_,{isMobile:r,context:y},n),!p&&w&&d>=1&&(0,s.h)(C,null,Array.from(Array(d)).map(function(e,t){return(0,s.h)(S,{context:y,key:"dot - ".concat(n," -").concat(t," "),active:t+1===h})})))}},{"@swc/helpers/_/_sliced_to_array":"fHrmT","@swc/helpers/_/_tagged_template_literal":"4kjko",preact:"gdb49","styled-components":"cCe5U",reactn:"iVSVY","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],aeEP7:[function(e,t,n){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var r=e("preact");n.default=function(){return(0,r.h)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M15.9109 21.6723C18.9239 21.6723 21.3664 19.2298 21.3664 16.2169C21.3664 13.2039 18.9239 10.7614 15.9109 10.7614C12.898 10.7614 10.4555 13.2039 10.4555 16.2169C10.4555 19.2298 12.898 21.6723 15.9109 21.6723Z",fill:"white"}),(0,r.h)("path",{d:"M15.911 24.4001C12.2694 24.4001 5 26.2276 5 29.8555V31.2194C5 31.9695 5.61374 32.5833 6.36387 32.5833H25.458C26.2082 32.5833 26.8219 31.9695 26.8219 31.2194V29.8555C26.8219 26.2276 19.5525 24.4001 15.911 24.4001ZM24.7352 14.5393C25.1716 15.6167 25.1716 16.8169 24.7352 17.8944C24.476 18.5354 24.5852 19.2583 25.0761 19.7493L25.1171 19.7902C25.9081 20.5812 27.2583 20.4176 27.7766 19.4219C28.8131 17.4443 28.8131 15.1257 27.7493 13.0663C27.2311 12.057 25.8672 11.8661 25.0625 12.6708L25.0489 12.6844C24.5852 13.1618 24.476 13.8983 24.7352 14.5393ZM29.7951 7.8836C29.2496 8.42915 29.1678 9.27475 29.6178 9.90213C32.3047 13.6391 32.291 18.6445 29.5769 22.5179C29.1405 23.1317 29.2359 23.9773 29.7679 24.5092L29.8088 24.5501C30.4771 25.2184 31.6091 25.1638 32.1819 24.4137C35.9325 19.5856 35.9462 12.9981 32.1819 8.01999C31.6091 7.26986 30.4634 7.21531 29.7951 7.8836Z",fill:"white"}))}},{preact:"gdb49","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],iwSYr:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"IncreasePageSpeechSpeedCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),s=e("@swc/helpers/_/_ts_generator"),i=e("./SetPageSpeechLevelCommand"),c=e("reactn"),l=e("../../constants/config"),u=function e(t){"use strict";(0,o._)(this,e),this.language=t,this.previousLevel=0;var n=this;this.execute=(0,a._)(function(){var e,t,r;return(0,s._)(this,function(a){switch(a.label){case 0:return t="none"===(e=(0,c.getGlobal)().pageSpeechState)?0:e,n.previousLevel=t,r=(t+1)%l.speechSpeedList.length,[4,new i.SetPageSpeechLevelCommand(n.language,r).execute()];case 1:return a.sent(),[2]}})});var r=this;this.undo=(0,a._)(function(){return(0,s._)(this,function(e){return new i.SetPageSpeechLevelCommand(r.language,r.previousLevel).execute(),[2]})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1","./SetPageSpeechLevelCommand":"4FMYL",reactn:"iVSVY","../../constants/config":"kqbjQ","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],d5d9g:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n);var a=e("@swc/helpers/_/_sliced_to_array"),o=e("preact"),s=e("preact/compat"),i=e("reactn"),c=e("../constants/config"),l=e("../components/ResourceButton"),u=r.interopDefault(l),d=e("../components/Icons/FontSize"),h=r.interopDefault(d),p=e("../constants/translates"),m=e("../services/analytics"),g=e("../commands/fontSizeCommands/SetFontSizeCommand"),f=e("../hooks/useDebounce"),v=e("../hooks/useCommandStack"),_=e("../commands/fontSizeCommands/IncreaseFontSizeCommand");n.default=function(e){var t=e.config,n=(0,a._)((0,i.useGlobal)(),1)[0],r=n.fontSizeScaleState,l=n.isMobile,d=(0,f.useDebounce)(r,c.analyticsDebounceTime),C=(0,v.useCommandStack)().execute,S=t.language;(0,s.useEffect)(function(){if("none"!==d){var e=100*c.fontSizeScaleList[d];(0,m.sendEvent)({eventCategory:"Complementos",eventAction:0===d?"Desativar":"Ativar",eventLabel:"Aumentar fonte",eventValue:e})}},[d]);var b=(0,s.useMemo)(function(){return"none"===r?0:r},[r]);return(0,s.useEffect)(function(){var e=parseInt(sessionStorage.getItem("HTFontSizeScale")||"0");0!==e&&C(new g.SetFontSizeCommand(e))},[]),(0,o.h)(u.default,{onClick:function(){C(new _.IncreaseFontSizeCommand)},isMobile:l,icon:(0,o.h)(h.default,null),title:(0,p.getTranslate)("fontSize",S),ariaLabelInactive:(0,p.getTranslate)("fontSizeAriaLabelInactive",S),ariaLabelActive:(0,p.getTranslate)("fontSizeAriaLabelActive",S,b.toString()),dotsLength:c.fontSizeScaleList.length-1,dotsIndex:b,language:S})}},{"@swc/helpers/_/_sliced_to_array":"fHrmT",preact:"gdb49","preact/compat":"8ZO42",reactn:"iVSVY","../constants/config":"kqbjQ","../components/ResourceButton":"bnNUx","../components/Icons/FontSize":"4r11f","../constants/translates":"e16dt","../services/analytics":"9b6Tu","../commands/fontSizeCommands/SetFontSizeCommand":"eYO3g","../hooks/useDebounce":"c67Vm","../hooks/useCommandStack":"2LAi9","../commands/fontSizeCommands/IncreaseFontSizeCommand":"doKy8","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"4r11f":[function(e,t,n){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var r=e("preact");n.default=function(){return(0,r.h)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M19.3009 16.0001C19.3009 15.3416 19.8397 14.8028 20.4982 14.8028H22.8929V12.4081C22.8929 11.7495 23.4317 11.2107 24.0902 11.2107C24.7488 11.2107 25.2876 11.7495 25.2876 12.4081V14.8028H27.6822C28.3408 14.8028 28.8796 15.3416 28.8796 16.0001C28.8796 16.6586 28.3408 17.1974 27.6822 17.1974H25.2876V19.5921C25.2876 20.2507 24.7488 20.7895 24.0902 20.7895C23.4317 20.7895 22.8929 20.2507 22.8929 19.5921V17.1974H20.4982C19.8397 17.1974 19.3009 16.6586 19.3009 16.0001Z",fill:"#666666"}),(0,r.h)("path",{d:"M12.5756 17.702L11.1173 13.392C11.0093 13.1183 10.8941 12.7978 10.7717 12.4306C10.6492 12.0561 10.5268 11.6528 10.4044 11.2207C10.2964 11.66 10.1812 12.0669 10.0587 12.4414C9.93631 12.8158 9.82109 13.1399 9.71307 13.4136L8.26559 17.702H12.5756ZM18.3763 23.7187H15.5462C15.2293 23.7187 14.9737 23.6467 14.7792 23.5027C14.5848 23.3514 14.4372 23.1606 14.3363 22.9302L13.4074 20.1864H7.42304L6.49406 22.9302C6.41485 23.1318 6.27082 23.3154 6.06198 23.4811C5.86034 23.6395 5.60829 23.7187 5.30584 23.7187H2.4541L8.54645 7.98014H12.284L18.3763 23.7187Z",fill:"#666666"}))}},{preact:"gdb49","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],eYO3g:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"SetFontSizeCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),s=e("@swc/helpers/_/_ts_generator"),i=e("reactn"),c=e("../../services/domTypographyService"),l=e("../../services/appActivator"),u=function e(t){"use strict";(0,o._)(this,e),this.level=t,this.previousLevel="none";var n=this;this.execute=(0,a._)(function(){var e;return(0,s._)(this,function(t){switch(t.label){case 0:return e=(0,i.getGlobal)().fontSizeScaleState,n.previousLevel=e,0===n.level?c.restoreFontSize():c.updateFontSize(n.level),sessionStorage.setItem("HTFontSizeScale",n.level.toString()),[4,(0,i.setGlobal)({fontSizeScaleState:n.level})];case 1:return t.sent(),(0,l.appActivator).handleAddon(),[2]}})});var r=this;this.undo=(0,a._)(function(){var t;return(0,s._)(this,function(n){switch(n.label){case 0:return t="none"===r.previousLevel?0:r.previousLevel,[4,new e(t).execute()];case 1:return n.sent(),[2]}})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1",reactn:"iVSVY","../../services/domTypographyService":"6ZP8g","../../services/appActivator":"eOZgV","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"6ZP8g":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"updateLineHeight",function(){return C}),r.export(n,"updateFontSize",function(){return S}),r.export(n,"updateLetterSpacing",function(){return b}),r.export(n,"restoreLineHeight",function(){return y}),r.export(n,"restoreFontSize",function(){return w}),r.export(n,"restoreLetterSpacing",function(){return x}),r.export(n,"clearHtStyleCache",function(){return A});var a=e("@swc/helpers/_/_class_call_check"),o=e("@swc/helpers/_/_create_class"),s=e("../constants/config"),i=["script",".ht-skip",".ht-exception",".ht-exception *"],c=function(){var e=new CSSStyleSheet;return e.insertRule("body *:not(".concat(i.join(","),") { hyphens: auto !important; }"),0),e.insertRule("body *:not(".concat(i.join(","),") { word-wrap: break-word !important; }"),1),e.disabled=!0,document.adoptedStyleSheets.push(e),e},l=c(),u=c(),d=function(){"use strict";function e(t,n,r,o,s,i){(0,a._)(this,e),this.inlineFontSize=t,this.inlineLineHeight=n,this.inlineLetterSpacing=r,this.computedFontSize=o,this.computedLineHeight=s,this.computedLetterSpacing=i}return(0,o._)(e,[{key:"fontSize",get:function(){return parseFloat(this.computedFontSize)}},{key:"lineHeight",get:function(){return parseFloat(this.computedLineHeight)}},{key:"letterSpacing",get:function(){var e=parseFloat(this.computedLetterSpacing);return isNaN(e)?s.defaultLetterSpacing:e}},{key:"relativeLineHeight",get:function(){return isNaN(this.lineHeight)?s.defaultLineHeight:this.lineHeight/this.fontSize}}]),e}(),h=1,p="htStyleCache",m=new Map,g=function(e){var t=(h++).toString(),n=e.style.getPropertyValue("font-size"),r=e.style.getPropertyValue("line-height"),a=e.style.getPropertyValue("letter-spacing"),o=window.getComputedStyle(e),s=o.getPropertyValue("font-size"),i=o.getPropertyValue("line-height"),c=o.getPropertyValue("letter-spacing"),l=new d(n,r,a,s,i,c);e.dataset[p]=t,m.set(t,l),e.style.setProperty("line-height",l.relativeLineHeight.toString())},f=function(){var e="body *:not(".concat(i.join(","),")");return Array.from(document.body.querySelectorAll(e))},v=function(e){e.dataset[p]||g(e);var t=e.dataset[p];if(t)return m.get(t)},_=function(e){f().map(function(e){return{element:e,cachedStyle:v(e)}}).filter(function(e){return!!e.cachedStyle}).forEach(e)},C=function(e){var t=s.lineHeightScaleList[e];_(function(e){var n=e.element,r=e.cachedStyle.relativeLineHeight*t;n.style.setProperty("line-height",r.toString())})},S=function(e){l.disabled=!1;var t=s.fontSizeScaleList[e];_(function(e){var n=e.element,r=e.cachedStyle.fontSize*t;n.style.setProperty("font-size","".concat(r,"px"))})},b=function(e){u.disabled=!1;var t=s.letterSpacingtScaleList[e];_(function(e){var n=e.element,r=e.cachedStyle.letterSpacing*t;n.style.setProperty("letter-spacing","".concat(r,"px"))})},y=function(){_(function(e){var t=e.element,n=e.cachedStyle.relativeLineHeight;t.style.setProperty("line-height",n.toString())})},w=function(){l.disabled=!0,_(function(e){var t=e.element,n=e.cachedStyle;t.style.setProperty("font-size",n.inlineFontSize)})},x=function(){u.disabled=!0,_(function(e){var t=e.element,n=e.cachedStyle;t.style.setProperty("letter-spacing",n.inlineLetterSpacing)})},A=function(e){var t=document.getElementById(e);t&&t.querySelectorAll("[data-ht-style-cache]").forEach(function(e){var t=e.dataset[p];if(t){var n=m.get(t);if(n){var r=n.inlineFontSize,a=n.inlineLineHeight,o=n.inlineLetterSpacing;e.style.fontSize=r,e.style.lineHeight=a,e.style.letterSpacing=o,e.removeAttribute("data-ht-style-cache")}}})}},{"@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_create_class":"1iqT9","../constants/config":"kqbjQ","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],doKy8:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"IncreaseFontSizeCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),s=e("@swc/helpers/_/_ts_generator"),i=e("reactn"),c=e("./SetFontSizeCommand"),l=e("../../constants/config"),u=function e(){"use strict";(0,o._)(this,e),this.previousLevel=0;var t=this;this.execute=(0,a._)(function(){var e,n,r;return(0,s._)(this,function(a){switch(a.label){case 0:return n="none"===(e=(0,i.getGlobal)().fontSizeScaleState)?0:e,t.previousLevel=n,r=n>=l.fontSizeScaleList.length-1?0:n+1,[4,new c.SetFontSizeCommand(r).execute()];case 1:return a.sent(),[2]}})});var n=this;this.undo=(0,a._)(function(){return(0,s._)(this,function(e){switch(e.label){case 0:return[4,new c.SetFontSizeCommand(n.previousLevel).execute()];case 1:return e.sent(),[2]}})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1",reactn:"iVSVY","./SetFontSizeCommand":"eYO3g","../../constants/config":"kqbjQ","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],apsCt:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n);var a=e("@swc/helpers/_/_sliced_to_array"),o=e("preact"),s=e("preact/compat"),i=e("reactn"),c=e("../components/ResourceButton"),l=r.interopDefault(c),u=e("../components/Icons/LineSpacing"),d=r.interopDefault(u),h=e("../constants/translates"),p=e("../services/analytics"),m=e("../hooks/useDebounce"),g=e("../hooks/useCommandStack"),f=e("../constants/config"),v=e("../commands/lineHeightCommands/SetLineHeightCommand"),_=e("../commands/lineHeightCommands/IncreaseLineHeightCommand");n.default=function(e){var t=e.config,n=(0,a._)((0,i.useGlobal)(),1)[0],r=n.lineHeightScaleState,c=n.isMobile,u=(0,m.useDebounce)(r,f.analyticsDebounceTime),C=(0,g.useCommandStack)().execute,S=t.language;(0,s.useEffect)(function(){if("none"!==u){var e=100*f.lineHeightScaleList[u];(0,p.sendEvent)({eventCategory:"Complementos",eventAction:0===u?"Desativar":"Ativar",eventLabel:"Espa\xe7amento entre linhas",eventValue:e})}},[u]);var b=(0,s.useMemo)(function(){return"none"===r?0:r},[r]);return(0,s.useEffect)(function(){var e=parseInt(sessionStorage.getItem("HTLineHeightScale")||"0");0!==e&&C(new v.SetLineHeightCommand(e))},[]),(0,o.h)(l.default,{onClick:function(){C(new _.IncreaseLineHeightCommand)},isMobile:c,icon:(0,o.h)(d.default,null),title:(0,h.getTranslate)("lineHeight",S),ariaLabelInactive:(0,h.getTranslate)("lineHeightAriaLabelInactive",S),ariaLabelActive:(0,h.getTranslate)("lineHeightAriaLabelActive",S,r.toString()),dotsLength:f.lineHeightScaleList.length-1,dotsIndex:b,language:S})}},{"@swc/helpers/_/_sliced_to_array":"fHrmT",preact:"gdb49","preact/compat":"8ZO42",reactn:"iVSVY","../components/ResourceButton":"bnNUx","../components/Icons/LineSpacing":"bxjQO","../constants/translates":"e16dt","../services/analytics":"9b6Tu","../hooks/useDebounce":"c67Vm","../hooks/useCommandStack":"2LAi9","../constants/config":"kqbjQ","../commands/lineHeightCommands/SetLineHeightCommand":"9nLqb","../commands/lineHeightCommands/IncreaseLineHeightCommand":"aDwvi","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],bxjQO:[function(e,t,n){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(n);var r=e("preact");n.default=function(){return(0,r.h)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("path",{d:"M13.3159 13.0623C13.9409 13.0623 14.2464 12.3123 13.802 11.8818L10.6214 8.68734C10.3437 8.40956 9.9131 8.40956 9.63532 8.68734L6.45477 11.8818C6.02421 12.3123 6.32977 13.0623 6.95477 13.0623H8.74643V26.9512H6.95477C6.32977 26.9512 6.02421 27.7012 6.46865 28.1318L9.64921 31.3123C9.92699 31.5901 10.3575 31.5901 10.6353 31.3123L13.8159 28.1318C14.2464 27.7012 13.9409 26.9512 13.3159 26.9512H11.5242V13.0623H13.3159ZM18.4687 13.0623H32.3575C33.1214 13.0623 33.7464 12.4373 33.7464 11.6734C33.7464 10.9096 33.1214 10.2846 32.3575 10.2846H18.4687C17.7048 10.2846 17.0798 10.9096 17.0798 11.6734C17.0798 12.4373 17.7048 13.0623 18.4687 13.0623ZM32.3575 26.9512H18.4687C17.7048 26.9512 17.0798 27.5762 17.0798 28.3401C17.0798 29.104 17.7048 29.729 18.4687 29.729H32.3575C33.1214 29.729 33.7464 29.104 33.7464 28.3401C33.7464 27.5762 33.1214 26.9512 32.3575 26.9512ZM32.3575 18.6179H18.4687C17.7048 18.6179 17.0798 19.2429 17.0798 20.0068C17.0798 20.7707 17.7048 21.3957 18.4687 21.3957H32.3575C33.1214 21.3957 33.7464 20.7707 33.7464 20.0068C33.7464 19.2429 33.1214 18.6179 32.3575 18.6179Z",fill:"white"}))}},{preact:"gdb49","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"9nLqb":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"SetLineHeightCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),s=e("@swc/helpers/_/_ts_generator"),i=e("reactn"),c=e("../../services/domTypographyService"),l=e("../../services/appActivator"),u=function e(t){"use strict";(0,o._)(this,e),this.level=t,this.previousLevel="none";var n=this;this.execute=(0,a._)(function(){var e;return(0,s._)(this,function(t){switch(t.label){case 0:return e=(0,i.getGlobal)().lineHeightScaleState,n.previousLevel=e,0===n.level?c.restoreLineHeight():c.updateLineHeight(n.level),sessionStorage.setItem("HTLineHeightScale",n.level.toString()),[4,(0,i.setGlobal)({lineHeightScaleState:n.level})];case 1:return t.sent(),(0,l.appActivator).handleAddon(),[2]}})});var r=this;this.undo=(0,a._)(function(){var t;return(0,s._)(this,function(n){switch(n.label){case 0:return t="none"===r.previousLevel?0:r.previousLevel,[4,new e(t).execute()];case 1:return n.sent(),[2]}})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1",reactn:"iVSVY","../../services/domTypographyService":"6ZP8g","../../services/appActivator":"eOZgV","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],aDwvi:[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"IncreaseLineHeightCommand",function(){return u});var a=e("@swc/helpers/_/_async_to_generator"),o=e("@swc/helpers/_/_class_call_check"),s=e("@swc/helpers/_/_ts_generator"),i=e("reactn"),c=e("../../constants/config"),l=e("./SetLineHeightCommand"),u=function e(){"use strict";(0,o._)(this,e),this.previousLevel=0;var t=this;this.execute=(0,a._)(function(){var e,n,r;return(0,s._)(this,function(a){switch(a.label){case 0:return n="none"===(e=(0,i.getGlobal)().lineHeightScaleState)?0:e,t.previousLevel=n,r=n>=c.lineHeightScaleList.length-1?0:n+1,[4,new l.SetLineHeightCommand(r).execute()];case 1:return a.sent(),[2]}})});var n=this;this.undo=(0,a._)(function(){return(0,s._)(this,function(e){switch(e.label){case 0:return[4,new l.SetLineHeightCommand(n.previousLevel).execute()];case 1:return e.sent(),[2]}})})}},{"@swc/helpers/_/_async_to_generator":"8PnUF","@swc/helpers/_/_class_call_check":"fGuXX","@swc/helpers/_/_ts_generator":"bZrP1",reactn:"iVSVY","../../constants/config":"kqbjQ","./SetLineHeightCommand":"9nLqb","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"3yAv2":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n);var a=e("@swc/helpers/_/_sliced_to_array"),o=e("preact/compat"),s=e("reactn"),i=e("preact"),c=e("../constants/translates"),l=e("../services/articleService"),u=e("../hooks/useDebounce"),d=e("../views/ReaderMode"),h=r.interopDefault(d),p=e("../components/ResourceButton"),m=r.interopDefault(p),g=e("../components/Icons/ReaderMode"),f=e("../services/analytics"),v=e("../constants/config"),_=e("../hooks/useCommandStack"),C=e("../commands/readerModeCommands/SetReaderModeCommand"),S=e("../commands/readerModeCommands/IncreaseReaderModeCommand");n.default=function(e){var t=e.config,n=(0,a._)((0,o.useState)(!1),2),r=n[0],d=n[1],p=(0,a._)((0,s.useGlobal)(),1)[0],b=p.isMobile,y=p.element,w=p.readerModeState,x=p.isAddonsActive,A=t.language,L=(0,u.useDebounce)(w,v.analyticsDebounceTime),k=2===w,T=(0,_.useCommandStack)().execute;(0,o.useEffect)(function(){"none"!==L&&(0,f.handleAnalyticsReaderMode)(L)},[L]),(0,o.useEffect)(function(){var e=parseInt(sessionStorage.getItem("HTReaderMode")||"0"),t=l.domValidateReaderMode(document);0!==e&&t&&T(new C.SetReaderModeCommand(A,e))},[]);var I=v.readerModeList.length-1,E=(0,o.useMemo)(function(){return"none"===w?0:w},[w]);(0,o.useEffect)(function(){(x||E>0)&&(E>0?d(!0):d(l.domValidateReaderMode(document)))},[x,E]);var H={0:(0,i.h)(g.ReaderModeIcon,null),1:(0,i.h)(g.ReaderModeLightIcon,null),2:(0,i.h)(g.ReaderModeDarkIcon,null)};return(0,i.h)(o.Fragment,null,(0,i.h)(m.default,{disabled:!r,isMobile:b,onClick:function(){T(new S.IncreaseReaderModeLevelCommand(A))},icon:H[E],title:(0,c.getTranslate)("readerMode",A),ariaLabelInactive:r?(0,c.getTranslate)("readerModeAriaLabelInactive",A):(0,c.getTranslate)("readerModeUnavailable",A),ariaLabelActive:(0,c.getTranslate)("readerModeAriaLabelActive",A,E.toString()),dotsLength:I,dotsIndex:E,language:A}),E>0&&(0,o.createPortal)((0,i.h)(h.default,{isMobile:b,isDarkMode:k}),y))}},{"@swc/helpers/_/_sliced_to_array":"fHrmT","preact/compat":"8ZO42",reactn:"iVSVY",preact:"gdb49","../constants/translates":"e16dt","../services/articleService":"3bbQo","../hooks/useDebounce":"c67Vm","../views/ReaderMode":"5JVdz","../components/ResourceButton":"bnNUx","../components/Icons/ReaderMode":"1JTy0","../services/analytics":"9b6Tu","../constants/config":"kqbjQ","../hooks/useCommandStack":"2LAi9","../commands/readerModeCommands/SetReaderModeCommand":"3pzqt","../commands/readerModeCommands/IncreaseReaderModeCommand":"eaDl7","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"3bbQo":[function(e,t,n){var r=e("@parcel/transformer-js/src/esmodule-helpers.js");r.defineInteropFlag(n),r.export(n,"domToArticle",function(){return u}),r.export(n,"domValidateReaderMode",function(){return d});var a=e("@mozilla/readability"),o=e("dompurify"),s=r.interopDefault(o),i=e("../domUtils"),c={minContentLength:140,minScore:20},l={},u=function(e){var t=e.cloneNode(!0),n=new a.Readability(t,l).parse();if(!n)return console.error("Failed to parse article with Readability."),null;var r=(0,i.removeIDsFromString)(n.content);return{content:(0,s.default).sanitize(r),title:(0,s.default).sanitize(n.title)}},d=function(e){var t=e.cloneNode(!0);return(0,a.isProbablyReaderable)(t,c)}},{"@mozilla/readability":"7RWHb",dompurify:"5en9m","../domUtils":"1UlS3","@parcel/transformer-js/src/esmodule-helpers.js":"4yirv"}],"7RWHb":[function(e,t,n){var r=e("8eab4f7909b8a832"),a=e("2774c324ea37ee83");t.exports={Readability:r,isProbablyReaderable:a}},{"8eab4f7909b8a832":"kfWcN","2774c324ea37ee83":"8WEce"}],kfWcN:[function(e,t,n){var r=e("@swc/helpers/_/_type_of");function a(e,t){if(t&&t.documentElement)e=t,t=arguments[2];else if(!e||!e.documentElement)throw Error("First argument to Readability constructor should be a document object.");if(t=t||{},this._doc=e,this._docJSDOMParser=this._doc.firstChild.__JSDOMParser__,this._articleTitle=null,this._articleByline=null,this._articleDir=null,this._articleSiteName=null,this._attempts=[],this._debug=!!t.debug,this._maxElemsToParse=t.maxElemsToParse||this.DEFAULT_MAX_ELEMS_TO_PARSE,this._nbTopCandidates=t.nbTopCandidates||this.DEFAULT_N_TOP_CANDIDATES,this._charThreshold=t.charThreshold||this.DEFAULT_CHAR_THRESHOLD,this._classesToPreserve=this.CLASSES_TO_PRESERVE.concat(t.classesToPreserve||[]),this._keepClasses=!!t.keepClasses,this._serializer=t.serializer||function(e){return e.innerHTML},this._disableJSONLD=!!t.disableJSONLD,this._allowedVideoRegex=t.allowedVideoRegex||this.REGEXPS.videos,this._flags=this.FLAG_STRIP_UNLIKELYS|this.FLAG_WEIGHT_CLASSES|this.FLAG_CLEAN_CONDITIONALLY,this._debug){var n=function(e){if(e.nodeType==e.TEXT_NODE)return"".concat(e.nodeName,' ("').concat(e.textContent,'")');var t=Array.from(e.attributes||[],function(e){return"".concat(e.name,'="').concat(e.value,'"')}).join(" ");return"<".concat(e.localName," ").concat(t,">")};this.log=function(){var e=this;if("undefined"!=typeof console){var t=Array.from(arguments,function(t){return t&&t.nodeType==e.ELEMENT_NODE?n(t):t});t.unshift("Reader: (Readability)"),console.log.apply(console,t)}else if("undefined"!=typeof dump){var r=Array.prototype.map.call(arguments,function(e){return e&&e.nodeName?n(e):e}).join(" ");dump("Reader: (Readability) "+r+"\n")}}}else this.log=function(){}}a.prototype={FLAG_STRIP_UNLIKELYS:1,FLAG_WEIGHT_CLASSES:2,FLAG_CLEAN_CONDITIONALLY:4,ELEMENT_NODE:1,TEXT_NODE:3,DEFAULT_MAX_ELEMS_TO_PARSE:0,DEFAULT_N_TOP_CANDIDATES:5,DEFAULT_TAGS_TO_SCORE:"SECTION,H2,H3,H4,H5,H6,P,TD,PRE".split(","),DEFAULT_CHAR_THRESHOLD:500,REGEXPS:{unlikelyCandidates:/-ad-|ai2html|banner|breadcrumbs|combx|comment|community|cover-wrap|disqus|extra|footer|gdpr|header|legends|menu|related|remark|replies|rss|shoutbox|sidebar|skyscraper|social|sponsor|supplemental|ad-break|agegate|pagination|pager|popup|yom-remote/i,okMaybeItsACandidate:/and|article|body|column|content|main|shadow/i,positive:/article|body|content|entry|hentry|h-entry|main|page|pagination|post|text|blog|story/i,negative:/-ad-|hidden|^hid$| hid$| hid |^hid |banner|combx|comment|com-|contact|foot|footer|footnote|gdpr|masthead|media|meta|outbrain|promo|related|scroll|share|shoutbox|sidebar|skyscraper|sponsor|shopping|tags|tool|widget/i,extraneous:/print|archive|comment|discuss|e[\-]?mail|share|reply|all|login|sign|single|utility/i,byline:/byline|author|dateline|writtenby|p-author/i,replaceFonts:/<(\/?)font[^>]*>/gi,normalize:/\s{2,}/g,videos:/\/\/(www\.)?((dailymotion|youtube|youtube-nocookie|player\.vimeo|v\.qq)\.com|(archive|upload\.wikimedia)\.org|player\.twitch\.tv)/i,shareElements:/(\b|_)(share|sharedaddy)(\b|_)/i,nextLink:/(next|weiter|continue|>([^\|]|$)|»([^\|]|$))/i,prevLink:/(prev|earl|old|new|<|«)/i,tokenize:/\W+/g,whitespace:/^\s*$/,hasContent:/\S$/,hashUrl:/^#.+/,srcsetUrl:/(\S+)(\s+[\d.]+[xw])?(\s*(?:,|$))/g,b64DataUrl:/^data:\s*([^\s;,]+)\s*;\s*base64\s*,/i,jsonLdArticleTypes:/^Article|AdvertiserContentArticle|NewsArticle|AnalysisNewsArticle|AskPublicNewsArticle|BackgroundNewsArticle|OpinionNewsArticle|ReportageNewsArticle|ReviewNewsArticle|Report|SatiricalArticle|ScholarlyArticle|MedicalScholarlyArticle|SocialMediaPosting|BlogPosting|LiveBlogPosting|DiscussionForumPosting|TechArticle|APIReference$/},UNLIKELY_ROLES:["menu","menubar","complementary","navigation","alert","alertdialog","dialog"],DIV_TO_P_ELEMS:new Set(["BLOCKQUOTE","DL","DIV","IMG","OL","P","PRE","TABLE","UL"]),ALTER_TO_DIV_EXCEPTIONS:["DIV","ARTICLE","SECTION","P"],PRESENTATIONAL_ATTRIBUTES:["align","background","bgcolor","border","cellpadding","cellspacing","frame","hspace","rules","style","valign","vspace"],DEPRECATED_SIZE_ATTRIBUTE_ELEMS:["TABLE","TH","TD","HR","PRE"],PHRASING_ELEMS:["ABBR","AUDIO","B","BDO","BR","BUTTON","CITE","CODE","DATA","DATALIST","DFN","EM","EMBED","I","IMG","INPUT","KBD","LABEL","MARK","MATH","METER","NOSCRIPT","OBJECT","OUTPUT","PROGRESS","Q","RUBY","SAMP","SCRIPT","SELECT","SMALL","SPAN","STRONG","SUB","SUP","TEXTAREA","TIME","VAR","WBR"],CLASSES_TO_PRESERVE:["page"],HTML_ESCAPE_MAP:{lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},_postProcessContent:function(e){this._fixRelativeUris(e),this._simplifyNestedElements(e),this._keepClasses||this._cleanClasses(e)},_removeNodes:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw Error("Do not pass live node lists to _removeNodes");for(var n=e.length-1;n>=0;n--){var r=e[n],a=r.parentNode;a&&(!t||t.call(this,r,n,e))&&a.removeChild(r)}},_replaceNodeTags:function(e,t){if(this._docJSDOMParser&&e._isLiveNodeList)throw Error("Do not pass live node lists to _replaceNodeTags");var n=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var i=o.value;this._setNodeTag(i,t)}}catch(e){r=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw a}}},_forEachNode:function(e,t){Array.prototype.forEach.call(e,t,this)},_findNode:function(e,t){return Array.prototype.find.call(e,t,this)},_someNode:function(e,t){return Array.prototype.some.call(e,t,this)},_everyNode:function(e,t){return Array.prototype.every.call(e,t,this)},_concatNodeLists:function(){var e=Array.prototype.slice,t=e.call(arguments),n=t.map(function(t){return e.call(t)});return Array.prototype.concat.apply([],n)},_getAllNodesWithTag:function(e,t){return e.querySelectorAll?e.querySelectorAll(t.join(",")):[].concat.apply([],t.map(function(t){var n=e.getElementsByTagName(t);return Array.isArray(n)?n:Array.from(n)}))},_cleanClasses:function(e){var t=this._classesToPreserve,n=(e.getAttribute("class")||"").split(/\s+/).filter(function(e){return -1!=t.indexOf(e)}).join(" ");for(n?e.setAttribute("class",n):e.removeAttribute("class"),e=e.firstElementChild;e;e=e.nextElementSibling)this._cleanClasses(e)},_fixRelativeUris:function(e){var t=function(e){if(n==r&&"#"==e.charAt(0))return e;try{return new URL(e,n).href}catch(e){}return e},n=this._doc.baseURI,r=this._doc.documentURI,a=this._getAllNodesWithTag(e,["a"]);this._forEachNode(a,function(e){var n=e.getAttribute("href");if(n){if(0===n.indexOf("javascript:")){if(1===e.childNodes.length&&e.childNodes[0].nodeType===this.TEXT_NODE){var r=this._doc.createTextNode(e.textContent);e.parentNode.replaceChild(r,e)}else{for(var a=this._doc.createElement("span");e.firstChild;)a.appendChild(e.firstChild);e.parentNode.replaceChild(a,e)}}else e.setAttribute("href",t(n))}});var o=this._getAllNodesWithTag(e,["img","picture","figure","video","audio","source"]);this._forEachNode(o,function(e){var n=e.getAttribute("src"),r=e.getAttribute("poster"),a=e.getAttribute("srcset");if(n&&e.setAttribute("src",t(n)),r&&e.setAttribute("poster",t(r)),a){var o=a.replace(this.REGEXPS.srcsetUrl,function(e,n,r,a){return t(n)+(r||"")+a});e.setAttribute("srcset",o)}})},_simplifyNestedElements:function(e){for(var t=e;t;){if(t.parentNode&&["DIV","SECTION"].includes(t.tagName)&&!(t.id&&t.id.startsWith("readability"))){if(this._isElementWithoutContent(t)){t=this._removeAndGetNext(t);continue}if(this._hasSingleTagInsideElement(t,"DIV")||this._hasSingleTagInsideElement(t,"SECTION")){for(var n=t.children[0],r=0;r»] /.test(n))a=/ [\\\/>»] /.test(n),3>e(n=r.replace(/(.*)[\|\-\\\/>»] .*/gi,"$1"))&&(n=r.replace(/[^\|\-\\\/>»]*[\|\-\\\/>»](.*)/gi,"$1"));else if(-1!==n.indexOf(": ")){var o=this._concatNodeLists(t.getElementsByTagName("h1"),t.getElementsByTagName("h2")),s=n.trim();!this._someNode(o,function(e){return e.textContent.trim()===s})&&(3>e(n=r.substring(r.lastIndexOf(":")+1))?n=r.substring(r.indexOf(":")+1):e(r.substr(0,r.indexOf(":")))>5&&(n=r))}else if(n.length>150||n.length<15){var i=t.getElementsByTagName("h1");1===i.length&&(n=this._getInnerText(i[0]))}var c=e(n=n.trim().replace(this.REGEXPS.normalize," "));return c<=4&&(!a||c!=e(r.replace(/[\|\-\\\/>»]+/g,""))-1)&&(n=r),n},_prepDocument:function(){var e=this._doc;this._removeNodes(this._getAllNodesWithTag(e,["style"])),e.body&&this._replaceBrs(e.body),this._replaceNodeTags(this._getAllNodesWithTag(e,["font"]),"SPAN")},_nextNode:function(e){for(var t=e;t&&t.nodeType!=this.ELEMENT_NODE&&this.REGEXPS.whitespace.test(t.textContent);)t=t.nextSibling;return t},_replaceBrs:function(e){this._forEachNode(this._getAllNodesWithTag(e,["br"]),function(e){for(var t=e.nextSibling,n=!1;(t=this._nextNode(t))&&"BR"==t.tagName;){n=!0;var r=t.nextSibling;t.parentNode.removeChild(t),t=r}if(n){var a=this._doc.createElement("p");for(e.parentNode.replaceChild(a,e),t=a.nextSibling;t;){if("BR"==t.tagName){var o=this._nextNode(t.nextSibling);if(o&&"BR"==o.tagName)break}if(!this._isPhrasingContent(t))break;var s=t.nextSibling;a.appendChild(t),t=s}for(;a.lastChild&&this._isWhitespace(a.lastChild);)a.removeChild(a.lastChild);"P"===a.parentNode.tagName&&this._setNodeTag(a.parentNode,"DIV")}})},_setNodeTag:function(e,t){if(this.log("_setNodeTag",e,t),this._docJSDOMParser)return e.localName=t.toLowerCase(),e.tagName=t.toUpperCase(),e;for(var n=e.ownerDocument.createElement(t);e.firstChild;)n.appendChild(e.firstChild);e.parentNode.replaceChild(n,e),e.readability&&(n.readability=e.readability);for(var r=0;r